/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package flange.functions;

/**
 *
 * @author Сергей
 */
public class ProportionFunction extends Function2D{
    public double m = 1, w = 1, u=10;

    public ProportionFunction(Point2D a, Point2D b) {
        super(a,b);
    }

    @Override
    public double getY(double x) {
        return m*(Math.sin(x/u) + w);
    }

}